from tensorflow.python.client import device_lib
import tensorflow as tf

import h5py


f = h5py.File('E:\\workspace python\\tf2\\LWHD2\\src\\model\\axle_0708_auto.h5', 'r')
print(f.attrs.get('keras_version'))

axle_model = tf.keras.models.load_model('E:\\workspace python\\tf2\\LWHD2\\src\\model\\axle_0708_auto.h5')
print(axle_model.get_config())

print(tf.__version__)
#print(device_lib.list_local_devices())